package top.xchch.creational.builder;

import lombok.Setter;

/**
 * 指挥者, 动态指定建造流程
 */
public class HouseDirector {
    @Setter
    private BaseBuilder builder;

    public House constructHouse() {
        builder.buildBasic();
        builder.buildWalls();
        builder.roofed();
        return builder.build();
    }
}
